package modelLayer;
public class Loan
{
    private int id;
    private String borrowDate;
    private String period;
    private String state;
    private Person loaner;
    private DVD dvd;
    public Loan(int id, String borrowDate, String period, String state, Person loaner,DVD dvd)
    {
        this.id = id;
        this.borrowDate = borrowDate;
        this.period = period;
        this.state = state;
        this.loaner = loaner;
        this.dvd = dvd;
    }
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    public String getborrowDate()
    {
        return borrowDate;
    }
    public void setborrowDate(String borrowDate)
    {
        this.borrowDate = borrowDate;
    }
    public String getperiod()
    {
        return period;
    }
    public void setperiod(String period)
    {
        this.id = id;
    }
    public String getstate()
    {
        return state;
    }
    public void setstate(String state)
    {
        this.state = state;
    }
     public Person getloaner()
    {
        return loaner;
    }
    public void setloaner(Person loaner)
    {
        this.loaner = loaner;
    }
    public DVD getDvd()
    {
        return dvd;
    }
    public void setDvd(DVD dvd)
    {
        this.dvd = dvd;
    }
}
